package com.gitee.aurora.agent.service.impl;

import com.gitee.aurora.agent.dao.ZfjdCheckDao;
import com.gitee.aurora.agent.service.ZfjdCheckService;
import com.gitee.aurora.agent.vo.DataCheckVo;
import com.gitee.aurora.core.utils.ResultVO;
import com.gitee.aurora.core.utils.ResultVOUtils;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * author: jiangfuxiao
 * Date:2022/9/2 11:34
 */
@Service("zfjdCheckServiceImpl")
public class ZfjdCheckServiceImpl implements ZfjdCheckService {

    @Resource(name = "zfjdCheckDaoImpl")
    private ZfjdCheckDao zfjdDao;

    @Override
    public ResultVO<List<Map<String, Object>>> queryTableData(DataCheckVo vo) {
        return ResultVOUtils.success(zfjdDao.queryTableDataByIds(vo));
    }

    @Override
    public ResultVO insertData(DataCheckVo vo) {
        return  zfjdDao.insertData(vo);
    }

}
